<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title></title>
  <link href="/styles/base.css" rel="stylesheet" type="text/css">
  <link href="/js/datepicker/datepicker.css" rel="stylesheet">
  <link href="/styles/wenda.css" rel="stylesheet" type="text/css">
  <link href="/styles/search.css" rel="stylesheet" type="text/css">
  <link href="/js/plugins/jqPaginator/jqPagination.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="/js/jquery/jquery.js"></script>
  <script type="text/javascript" src="/js/plugins/jqPaginator/jq-paginator.min.js"></script>
  <script type="text/javascript" src="/js/system/wenda.js"></script>
  <style>
      body {
          line-height: 20px;
          background: #FFF;
          padding-top: 0px;
      }
  </style>
  <script>
   $(function () {

       //跳转页面
      $('.desc').click(function () {
          var tid = $(this).data('id');
          window.location.href='/wenda/detail?id='+tid;
      })



       //排行
       $.get('/wenda/top', {type:2, rank:2}, function (data) {
           $('#paimingT').html(data);
       })
       $('._j_rank_change_date').click(function () {
           $('.tab-time li').removeClass('on');
           $(this).addClass('on');
           var type = $(this).data('type');
           var rank = $('.tab-num li[class="_j_rank_change_flag on"]').data('rank');
           $.get('/wenda/top', {type:type, rank:rank}, function (data) {
               $('#paimingT').html(data);
           })
       })
       $('._j_rank_change_flag').click(function () {
           $('.tab-num li').removeClass('on');
           $(this).addClass('on');
           var rank = $(this).data('rank');
           var type = $('.tab-time li[class="_j_rank_change_date on"]').data('type');
           $.get('/wenda/top', {type:type, rank:rank}, function (data) {
               $('#paimingT').html(data);
           })
       })

      //查询
      $("#_j_index_search_btn_all").click(function () {
        $("#searchForm1").submit();
      })

   })

  </script>
</head>



<body style="position: relative;">
    <#assign currentNav="wenda">
    <#include "../common/navbar.ftl">


  <div class="wrapper wrapper-new">

      <div class="p_upw">
          <div class="uptime_p">

              <a href="/wenda?state=0" id ="hotIssue" class="strategySearch ">问答首页</a>
              <span>|</span>
              <a href="/wenda?state=1" id="newIssue" data-state="1" class="strategySearch ">我的问答</a>
              <span>|</span>
              <a href="https://www.mafengwo.cn/g/i/11289526.html" id="newIssue" data-state="-1" class="strategySearch ">查看如何使用</a>
              <div class="clear"></div>
          </div>
          <div class="clear"></div>
      </div>

      <div class="col-main">
      <form action="/wenda/search" method="post" id="searchForm1">

      <div class="searchbar" id="_j_index_search_bar_all">
      <div class="search-wrapper">
        <div class="search-input">
          <input name="keyword" type="text" placeholder="提问前先搜搜是否已经有骡骡提问过" id="_j_index_search_input_all" autocomplete="off">
        </div>
      </div>
      <div class="search-button" id="_j_index_search_btn_all">
        <a role="button" href="javascript:"><i class="icon-search"></i></a>
      </div>
      </div>
      </form>

      <form action="/wenda" method="post" id="searchForm">
          <input type="hidden" name="currentPage" value="1" id="currentPage">


      <div class="newcate-wrap _j_qa_list">
        <div class="p_upw">
          <div class="uptime_p">

            <a href="/wenda?state=0" id ="hotIssue" class="strategySearch ">热门问题</a>
            <span>|</span>
            <a href="/wenda?state=1" id="newIssue" data-state="1" class="strategySearch ">最新问题</a>
            <span>|</span>
            <a href="/wenda?state=-1" id="newIssue" data-state="-1" class="strategySearch ">待回答问题</a>
            <div class="clear"></div>
          </div>
          <div class="clear"></div>
            <input type="hidden" name="state" id="state" value="${(qo.state)!}">
        </div>



        <div class="bd newcate-bd">


          <ul class="_j_pager_box">

            <#list pageInfo.list as t>
              <li class="item clearfix _j_question_item" data-qid="793682">
                <div class="title">
                  <a href="/wenda/detail?id=${t.id}" target="_blank">${t.title}</a> </div>
                <div class="container">

                  <#if t.hotHuida ??>
                    <div class="avatar"><a href="/mine1/homepage?id=${t.hotHuida.author.id}" target="_blank" class="_j_filter_click"><img
                                class="_j_filter_click"
                                src="${t.hotHuida.author.headImgUrl}"></a>
                    </div>
                    <div class="user-info">
                      <a class="name _j_filter_click" href="/mine1/homepage?id=${t.hotHuida.author.id}" target="_blank">${t.hotHuida.author.nickname}</a>
                      <a class="level _j_filter_click" href="/mine1/homepage?id=${t.hotHuida.author.id}" target="_blank" rel="nofollow">lv.${t.hotHuida.author.level}</a>
                    </div>
                    <div class="desc clearfix" data-id="${t.id}">
                      <img
                              src="${t.hotHuida.coverUrl}"
                              width="150" height="100">
                      <p>
                        ${t.hotHuida.summary}
                      </p>
                    </div>
                  </#if>

                  <#if !t.hotHuida ??>
                    <div class="desc clearfix" data-id="${t.id}">
                      ${(t.content)!}
                    </div>
                  </#if>
                  <div class="tags">
                    <a class="a-tag _j_filter_click" href="javascript:;" target="_blank">${(t.tag.name)!"无"}</a>
                  </div>

                <div class="operate">

                    <#if t.hotHuida ??>
                  <div class="zan"><i></i>${t.hotHuida.thumbsupnum}</div>
                      </#if>

                  <div class="mdd"><a href="javascript:;" class="_j_filter_click" target="_blank"><i
                        class="_j_filter_click"></i>${t.dest.name}</a></div>
                  <div class="cate-share">
                    <a class="_js_showShare _j_filter_click">分享</a>
                  </div>
                  <span class="reply">回答 (${t.replynum})</span>
                  <span class="browse">浏览 (${t.viewnum})</span>
                  <span class="date">发布于${t.createTime?string('yyyy-MM-dd HH:mm')}</span>
                </div>
              </div>
            </li>
            </#list>

          </ul>


        </div>
          <#include "../common/page.ftl">
      </div>
      </form>
    </div>




    <div class="col-side">

      <div class="tn-write">
        <a class="btn-add" href="/wenda/input" target="_blank" rel="nofollow"><i></i>我要提问</a>
      </div>

      <div class="rank _j_rank" style="margin-top: 60px;">

        <div class="hd">排行榜<ul class="tab-time">
            <li class="_j_rank_change_date" data-type="0"><span>今日</span></li>
            <li class="_j_rank_change_date" data-type="1"><span>本周</span></li>
            <li class="_j_rank_change_date on" data-type="2"><span>本月</span></li>
          </ul>
        </div>
        <div class="bd">
          <ul class="tab-num" data-cs-p="rank_list">
            <li class="_j_rank_change_flag" data-rank="0" data-cs-d="金牌数">金牌数</li>
            <li class="_j_rank_change_flag" data-rank="1" data-cs-d="回答数">回答数</li>
            <li class="_j_rank_change_flag on" data-rank="2" data-cs-d="被顶次数">被顶次数</li>
          </ul>
          <ul id="paimingT" class="rank-list _j_rank_list"></ul>
        </div>
      </div>
    </div>
  </div>
</body>

</html>


